#include <stdio.h>
#include <stdlib.h>
typedef char coco;
coco ch;
typedef struct LinkNode
{
   int data;
   struct LinkNode *next;
}LinkNode,*LinkNodePointer;
int a,*p;
LinkNode l;
LinkNodePointer p;
struct LinkNode * init(){
    struct LinkNode * head;
    head = (struct LinkNode *)malloc(sizeof(struct LinkNode));
    head->next =NULL;
    return head;
}

void insertNode(struct LinkNode * head){
    if(head == NULL){
        return;
    }
    struct LinkNode *pNode;
    pNode = head;
    while (pNode->next!=NULL)
    {
       pNode = pNode->next;
    }
    struct LinkNode *pNew = (struct LinkNode *)malloc(sizeof(struct LinkNode));
    pNew->data = 1;
    pNew->next = NULL;
    pNode->next =pNew;
}

void print(struct LinkNode * head){
    head = head->next;
    while (head!=NULL)
    {
        printf("this data is %d \n",head->data);
        head = head->next;
    }
}

int main(){

    struct LinkNode * pNode =NULL;
    pNode = init();
    insertNode(pNode);
    insertNode(pNode);
    print(pNode);
    
    


}


